<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

/*************************  机构端  *********************************/
Route::group([
    'middleware' => ['api','web'],
    'namespace' => 'Api',
], function ($router) {
    //新增排课
    Route::get('course_arrange/store', 'CourseArrangeController@agencyStore');
    //排课修改
    Route::get('course_arrange/update', 'CourseArrangeController@agencyUpdate');
    //排课详情
    Route::get('course_arrange/detail', 'CourseArrangeController@agencyDetail');
    //排课下达
    Route::get('course_arrange/issue', 'CourseArrangeController@agencyIssue');
    //排课删除
    Route::get('course_arrange/delete', 'CourseArrangeController@agencyDelete');
    //排课列表
    Route::get('course_arrange/list', 'CourseController@agencyList');

    //课程列表
    Route::get('/course/list', 'CourseController@list');

    //校区列表
    Route::get('/school/list', 'SchoolController@agencyList');

    //员工列表
    Route::get('/employees/list', 'EmployeesController@list');
    //员工登录
    Route::post('/employees/login', 'EmployeesController@login');
    //员工打卡
    Route::post('/employees/clock', 'EmployeesController@clock');

});

